<?php 

class Login extends ServiceStub{
	
	/*private function getParameters(ContextExecution $p_contexte){
		//
		$tab = array();
		$tab['nom'] = $p_contexte->m_dataRequest->getData('nom');
		$tab['motDePasse'] = $p_contexte->m_dataRequest->getData('motDePasse');
		return $tab;
	}*/
	
	
	
	public function display(ContextExecution $p_contexte){
		
	}
	
	public function update(ContextExecution $p_contexte){
		$tab = CommunUser::getParameters($p_contexte);
		
		
		$l_user = CommunUser::getUserLogin($tab['nom'], $tab['motDePasse']);
		
        $_SESSION['userid'] = $l_user->userId;
		
        $p_contexte->setUser($l_user);
	}
	
}


?>